Make SourceId cheap to clone
authorAlex Crichton <alex@alexcrichton.com>
Fri, 17 Oct 2014 18:48:57 +0000 (11:48 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Wed, 22 Oct 2014 18:29:52 +0000 (11:29 -0700)
commit913c243fd467e29145656f9fcdd83611511bfb96
tree550c98a85a2071c0d2a3343c4e49aab3994f682e
parent08c7d6133df64d97dc7b4433e7afc7c7b8f70af5
Make SourceId cheap to clone

Like PackageId, these are cloned quite often, so this moves them into an Arc to
make them cheap to clone. This also removes the public fields in favor of
accessors.
src/cargo/core/package_id_spec.rs
src/cargo/core/source.rs
src/cargo/ops/cargo_rustc/fingerprint.rs
src/cargo/sources/git/source.rs